<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'artist-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'io'); ?>
		<?php echo $form->textArea($model,'io',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'io'); ?>
	</div>

	<div class="row">
		<?php //echo $form->labelEx($model,'website'); ?>
		<?php //echo $form->textField($model,'website',array('size'=>60,'maxlength'=>255)); ?>
		<?php //echo $form->error($model,'website'); ?>
	</div>

	<div class="row">
            <?php
                $list_array = CHtml::listData(ArtistCategory::model()->findAll(), "id", "name");
                ?>
                <?php echo $form->labelEx($model,'category'); ?>
                <?php echo $form->listBox($model,'category',$list_array); ?>
                <?php echo $form->error($model,'category'); ?>
	</div>
    <div class="row">
            <?php
                $home_array = CHtml::listData(Home::model()->findAll(), "id", "name");
                ?>
                <?php echo $form->labelEx($model,'home_show'); ?>
                <?php echo $form->checkBox($model,'home_show',$home_array); ?>
                <?php echo $form->error($model,'home_show'); ?>
	</div>
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->